const fs = require('fs');

/*
    读取 resource 文件夹中的 1.txt 2.txt 3.txt
 */
fs.readFile("./resource/1.txt", (error, data1)=>{
    if(error) throw error;
    fs.readFile("./resource/2.txt", (error, data2)=>{
        if(error) throw error;
        fs.readFile("./resource/3.txt", (error, data3)=>{
            if(error) throw error;
            console.log(data1+data2+data3)
        })
    })
})
